package com.zhou.consulclient;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * consul client
 *
 * @author zx
 * @date 2019-07-10 14:41:01
 */
@EnableDiscoveryClient
@SpringBootApplication
public class ConsulClientApplication {

    public static void main(String[] args) {
//        SpringApplication.run(ConsulClientApplication.class, args);
        new SpringApplicationBuilder(ConsulClientApplication.class).web(true).run(args);
    }

}
